#include "targetuser.h"

TargetUser::TargetUser()
{

}

TargetUser::TargetUser(const TargetUser &other)
{
    m_number = other.m_number;
    m_infoSet = other.m_infoSet;
}

TargetUser &TargetUser::operator=(const TargetUser &other)
{
    TargetUser *ret = new TargetUser();
    ret->m_number = other.m_number;
    ret->m_infoSet = other.m_infoSet;
    return *ret;
}

bool TargetUser::operator==(const TargetUser &other) const
{
    return m_number.compare(other.m_number) == 0 && m_infoSet == other.m_infoSet;
}

bool TargetUser::isEmpty()
{
    return m_number.isEmpty() & m_infoSet.isEmpty();
}

QDebug operator<<(QDebug dbg, const TargetUser &data)
{
    dbg.nospace() << "Targetuser(" << data.m_number << ", " << data.m_infoSet << ")";
    return dbg.maybeSpace();
}
